import { InitsParam, initComponents } from ".";
const lazyLoadings = new Array<() => Promise<{ module: any; key: string; className: string }>>();
/*--filling
lazyLoadings.push(async () => {
  return {
    module: await import("${folderPath}"),
    key: "${folderName}",
    className: "${picks[0]}"
  };
});
filling--*/
export const load = async () => {
  const classes = new Array<InitsParam>();
  for (let lazyLoading of lazyLoadings) {
    const result = await lazyLoading();
    classes.push({ name: result.key, clazz: result.module[result.className] });
  }
  initComponents(classes);
};
